﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CTrChotdoigiaban.ascx.cs" Inherits="WebUserControl_CTrChotdoigiaban" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc2" %>
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/datePicker.css")%>' type="text/css" />
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />


<script type="text/javascript">
     function pageLoad() {
     
      $(function()
     {
	    $("#<%= txt_ngay.ClientID %>").datePicker(
		{
			clickInput:true,
			startDate: '01/01/1970'
		}
	);
});
      $("#<%= bt_chot.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
       
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script> 

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <fieldset>
    <legend>Chốt các nghiệp vụ kho</legend>
     <div class="fm-req">
            <label for="txtMaTuVanVien">Chọn loại nghiệp vụ:</label>
                    <asp:DropDownList ID="Ddl_loainghiepvu" runat="server"  AutoPostBack="True"  onselectedindexchanged="Ddl_loainghiepvu_SelectedIndexChanged">
                    </asp:DropDownList>   
     </div>
     <div class="fm-req">
            <label for="txtMaTuVanVien">Ngày:</label>
            <asp:TextBox ID="txt_ngay" runat="server"></asp:TextBox>
            <asp:Button ID="bt_chot" runat="server" onclick="bt_chot_Click" Text="Chốt" Width="100px" />
     </div>
    </fieldset>
        
             <br />
                    <asp:GridView ID="Gv_Nghiepvu" runat="server" CellPadding="4" 
                Height="14px" Width="600px" AllowPaging="True" AutoGenerateColumns="False" 
                BackColor="White" BorderColor="#CC9966" BorderStyle="None" 
                BorderWidth="1px" PageSize="12" style="margin-right: 5px">
                        <RowStyle BackColor="White" ForeColor="#330099" />
                        <Columns>
                            <asp:TemplateField HeaderText="Chọn?">
                                <EditItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                                <HeaderStyle Font-Overline="False" Height="20px" Width="15px" Wrap="True" 
                            HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="docno" HeaderText="Số Chứng từ" ReadOnly="True" >
                                <HeaderStyle HorizontalAlign="Center" Width="445px" Wrap="False" />
                                <ItemStyle HorizontalAlign="Center" Width="445px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="trntyp" HeaderText="Loại Chứng Từ" ReadOnly="True" 
                        SortExpression="trntyp">
                                <HeaderStyle Width="120px" Height="23px" Wrap="False" 
                            HorizontalAlign="Center" />
                                <ItemStyle Width="120px" Height="23px" Wrap="False" HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="printed" HeaderText="In ?" >
                                <HeaderStyle HorizontalAlign="Center" Width="20px" />
                                <ItemStyle HorizontalAlign="Center" Width="20px" />
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                        <PagerStyle ForeColor="#330099" HorizontalAlign="Center" BackColor="#FFFFCC" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" 
                    Width="80px" Wrap="True" />
                    </asp:GridView>
                
 
 </ContentTemplate>
</asp:UpdatePanel>
   <uc2:uscMsgBox ID="uscMsgBox1" runat="server" />

